import axios from "@/utils/reqiest";

//用户注册
export function userAddApi(data) {
    return axios({
        method: "post",
        url: "/User/AddUser",
        data: data
    })
}

//用户登录
export function loginApi(data) {
    return axios({
        method: "post",
        url: "/User/Login",
        data: data
    })
}

//用户头像上传
export function uploadAccountApi(data) {
    return axios({
        method: "post",
        url: "/User/Upload",
        headers: { 'Content-Type': 'multipart/form-data' },
        data
    })
}

//用户头像上传
export function getUserTypeApi() {
    return axios({
        method: "get",
        url: "/User/GetUserType",
    })
}